<?php
class producttypeModel extends Model
{
    protected $_validate = array(
        array("id", "integer", "id不是整数"),
        array("name", "require", "name不能为空"),
    );
}
?>